/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package thesis.haipv.qa.model;

import java.util.List;

/**
 *
 * @author PHANHAI
 */
public class Question {
    private String id;
    private String subject;
    private String content;
    private UserProfile asker;
    private long createTime;
    private int numAns;
    private boolean canAnswer;
    private boolean canFeedback;
    
    private List<Answer> answers;

    public Question() {
    }

    public Question(String id, String subject, String content, UserProfile asker) {
        this.id = id;
        this.subject = subject;
        this.content = content;
        this.asker = asker;
    }
    
    public Question(String id, String subject, String content, UserProfile asker, long createDate) {
        this.id = id;
        this.subject = subject;
        this.content = content;
        this.asker = asker;
        this.createTime = createDate;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createDate) {
        this.createTime = createDate;
    }
    
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public UserProfile getAsker() {
        return asker;
    }

    public void setAsker(UserProfile asker) {
        this.asker = asker;
    }

    public int getNumAns() {
        return numAns;
    }

    public void setNumAns(int numAns) {
        this.numAns = numAns;
    }

    public List<Answer> getAnswers() {
        return answers;
    }

    public void setAnswers(List<Answer> answers) {
        this.answers = answers;
    }

    public boolean isCanAnswer() {
        return canAnswer;
    }

    public void setCanAnswer(boolean canAnswer) {
        this.canAnswer = canAnswer;
    }

    public boolean isCanFeedback() {
        return canFeedback;
    }

    public void setCanFeedback(boolean canFeedback) {
        this.canFeedback = canFeedback;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    

    @Override
    public String toString() {
        return "Question{" + "content=" + content + '}';
    }
    
}
